<template>
  <div>
    <Breadcrumb></Breadcrumb>
    <div class="content">
      订单合同： <el-button @click="dialogVisible = true">查看合同</el-button>
    </div>
    <el-dialog v-model="dialogVisible" title="查看合同内容" width="60%" :before-close="handleClose">
      <Pdf></Pdf>
      <template #footer>
        <div class="dialog-footer">
          <el-button @click="dialogVisible = false">取 消</el-button>
          <el-button type="primary" @click="dialogVisible = false">
            确认
          </el-button>
        </div>
      </template>
    </el-dialog>
  </div>
</template>

<script setup>
import { ref } from 'vue'
import { ElMessageBox } from 'element-plus'
import Pdf from './Pdf.vue';
const dialogVisible = ref(false)

const handleClose = (done) => {
  dialogVisible.value=false
}
</script>

<style lang="less" scoped>
.content {
  background: #fff;
  padding: 20px;
}
</style>